package com.guigu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 用户地址表
 * </p>
 *
 * @author Mr.Zhang
 * @since 2025-03-12
 */
@Data
@TableName("user_address")
public class UserAddress implements Serializable {

    private static final long serialVersionUID=1L;

    //@ApiModelProperty(value = "地址id，主键，自增")
      @TableId(value = "address_id", type = IdType.AUTO)
    private Integer addressId;

    //@ApiModelProperty(value = "用户id")
    private Integer consumerId;

    //@ApiModelProperty(value = "地址")
    private String address;

    //@ApiModelProperty(value = "详细地址")
    private String detailAddress;

    //@ApiModelProperty(value = "是否默认地址，1表示是，0表示否")
    private Integer isDefault;

    private Double lng;

    private Double lat;


}
